Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

458
Vistas
How can I select only one element per group within a multiple select? [ng-zorro and nz-option-group]

I have a multiple select with several groups inside, thanks to nz-option-group. The problem is that I would like that although the select alone is multiple, it is possible to select an element for each group.


 <nz-select
            [formControl]="sortingGroupControl"
            nzAllowClear
            nzPlaceHolder="Choose"
            nzShowSearch
            nzMode="multiple"
            style="width: 70%"
          >
            <nz-option-group
              *ngFor="let item of sortItems"
              [nzLabel]="item.label"
            >
              <nz-option
                *ngFor="let value of item.groupItem"
                [nzValue]="value"
                [nzLabel]="value.order.label"
              ></nz-option>
            </nz-option-group>
          </nz-select>

A graphic example is this: example of multiple select

So i want select a field for Employee group, a select for Type Group etc.

Because now i can select more field for every group.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda